<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Dept Tree</title>
<link href="../css/tree.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
function showHide(id)
{
  //window.alert(id);
  var el = document.getElementById(id);
  var bExpand = true;
  var images = el.getElementsByTagName("img");
  if(images[0].src.indexOf("minus.gif")>=0)
  {
    //window.alert(id);
    bExpand = false;
    images[0].src = "../images/plus.gif";
    images[1].src = "../images/folderClosed.gif"
  }
  else
  {
    images[0].src = "../images/minus.gif";
    images[1].src = "../images/folderOpen.gif"
  }
  var subs = document.getElementById("subtree"+id);
  if(bExpand){
    subs.style.display = "";}
  else{
    subs.style.display = "none";}
}
</script>
<base target="mainFrame1"/>
</head>
<body>
<table width="100%" height="100" border="0">
<tr>
<td width="80%" align="left" valign="top">
<ul class="tree"><span>${requestScope.tree}</span></ul>
</td>
<td width="20%" align="right" valign="top"><a href="addDept.do" style="text-decoration:none;color:#00FF;">添加部门</a></td>
</tr>
</table>
</body>
</html>